#include "unit--.h"
#include "../WHResultManager.h"
using namespace unit_minus;

testSuite(POCSuite);

testCase(getResulTest,POCSuite)
{
    cout << "---------- Start WHResultManagerTest::getResultTest ----------" << endl;
    WHRESULT whr = WHResultManager::getInstance()->getResult(W_OK);
    assertTrue(WSUCCEEDED(whr));
    cout << "---------- End WHResultManagerTest::getResultTest ----------" << endl;
}

testCase(getDescriptionTest,POCSuite)
{
    cout << "------- Start WHResultManagerTest::getDescriptionTest -------" << endl;
    WHRESULT whr = WHResultManager::getInstance()->getResult(W_OK);
    wstring desc = WHResultManager::getInstance()->getDescription(whr);
    assertTrue(desc.compare(L"Operation successful") == 0);
    cout << "------- End WHResultManagerTest::getDescriptionTest -------" << endl;
}